<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/8/29
 * Time: 23:35
 */
    require_once ('../Common.php');
    require_once ('FinanceManage.php');
    $item_id = $_REQUEST['item_id'];

    if(!isset($item_id)){
        exit(json_encode(array('state'=>0, 'error'=>'POST_ERROR')));
    }

    $fm = new FinanceManage();
    $r = $fm->delFinanceItem($item_id);
    if($r){
        echo json_encode(array('state'=>1));
    }
    else{
        echo json_encode(array('state'=>0, 'error'=>'DB_ERROR'));
    }


?>